package com.hmkj.core.po.system;

import com.hmkj.common.baseMapper.GenericPo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Table;
import java.util.function.Consumer;


/**
 * 省市县区实体信息<br>
 *
 * @author xxw
 * @date   2017-10-16 02:30:52
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "省市县区")
@Table(name = "s_city")
public class City extends GenericPo<String> {

    public static final String TABLE_NAME = "s_city";

	
	/****/
	@ApiModelProperty(value = "")
	private String cityName;
	/****/
	@ApiModelProperty(value = "上级地区id,顶级为0")
	private String upId;
	/**1省份；2城市；3区县；4街道**/
	@ApiModelProperty(value = "1省份；2城市；3区县；4街道")
	private String kindId;

    public City(){}

    public City(Consumer<City> consumer){
    consumer.accept(this);
    }
}

